package cn.tedu.boot21.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BMIController {
    @RequestMapping("/bmi")
    @ResponseBody
    public String bmi(float height,float weight){
        System.out.println("height = " + height + ", weight = " + weight);
        float bmi=weight/(height*height);
        return "bmi="+bmi;
    }
}
